package cn.tedu._04mvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class OrderController {
    @RequestMapping("/v1/orders/add")
    @ResponseBody
    public String createOrder(){
        return "创建订单成功";
    }
    @RequestMapping("/v1/orders/list")
    @ResponseBody
    public String CheckOrder(){
        return "查看订单";
    }
    @RequestMapping("/v1/orders/delete")
    @ResponseBody
    public String deleteOrder(){
        return "删除订单";
    }
    @RequestMapping("/v1/orders/update")
    @ResponseBody
    public String updateOrder(){
        return "更新订单";
    }
}
